home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 3570 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: news.ptd.net!news
  2. From: Charly <Charly@postoffice.ptd.net>
  3. Newsgroups: comp.lang.c
  4. Subject: TAPI
  5. Date: 30 Jan 1996 01:40:00 GMT
  6. Organization: ProLog - PenTeleData, Inc.
  7. Message-ID: <4ejstg$21n@ns2.ptd.net>
  8. NNTP-Posting-Host: cs1-01.eph.ptd.net
  9.  
  10.       I'm trying to develope a TAPI application on Windows 95, with 
  11. Visual C++ v4.0, in MFC v4.0 but am having a problem with the
  12. ::lineInitialize() function. I added the following code in CVIEW's 
  13. OnInitialUpdate() (just try to get the TAPI function(s) to work):
  14.       LPHLINEAPP lphLineApp;
  15.       LINECALLBACK lpfnCallback;
  16.       LPDWORD lpdwNumDevs;
  17.  
  18.       long n= ::lineInitialize(lphLineApp,AfxGetInstanceHandle(), 
  19. lpfnCallBack, AfxGetAppName().lpdwNumDevs);
  20.  
  21.       When I compile and run the program, testing the value of n 
  22. I get the error code LINEERR_INVALPOINTER. I'm assuming my problem 
  23. is the LineCallBackFunction. In Inside Visual C++, Iread that wITH MFC 
  24. you do need CallBack functions. If this true and this my problem what 
  25. do I put for lpfnCallBack? Can somebody help me with the 
  26. ::lineInitialize() function. 
  27.  
  28.                                               Thank You
  29.  
  30.                                               Charly@postoffice.ptd.net
  31.